package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AttractionManagementMapper;
import com.ruoyi.system.domain.AttractionManagement;
import com.ruoyi.system.service.IAttractionManagementService;

/**
 * 景点管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-01
 */
@Service
public class AttractionManagementServiceImpl implements IAttractionManagementService 
{
    @Autowired
    private AttractionManagementMapper attractionManagementMapper;

    /**
     * 查询景点管理
     * 
     * @param id 景点管理主键
     * @return 景点管理
     */
    @Override
    public AttractionManagement selectAttractionManagementById(Long id)
    {
        return attractionManagementMapper.selectAttractionManagementById(id);
    }

    /**
     * 查询景点管理列表
     * 
     * @param attractionManagement 景点管理
     * @return 景点管理
     */
    @Override
    public List<AttractionManagement> selectAttractionManagementList(AttractionManagement attractionManagement)
    {
        return attractionManagementMapper.selectAttractionManagementList(attractionManagement);
    }

    /**
     * 新增景点管理
     * 
     * @param attractionManagement 景点管理
     * @return 结果
     */
    @Override
    public int insertAttractionManagement(AttractionManagement attractionManagement)
    {
        return attractionManagementMapper.insertAttractionManagement(attractionManagement);
    }

    /**
     * 修改景点管理
     * 
     * @param attractionManagement 景点管理
     * @return 结果
     */
    @Override
    public int updateAttractionManagement(AttractionManagement attractionManagement)
    {
        return attractionManagementMapper.updateAttractionManagement(attractionManagement);
    }

    /**
     * 批量删除景点管理
     * 
     * @param ids 需要删除的景点管理主键
     * @return 结果
     */
    @Override
    public int deleteAttractionManagementByIds(Long[] ids)
    {
        return attractionManagementMapper.deleteAttractionManagementByIds(ids);
    }

    /**
     * 删除景点管理信息
     * 
     * @param id 景点管理主键
     * @return 结果
     */
    @Override
    public int deleteAttractionManagementById(Long id)
    {
        return attractionManagementMapper.deleteAttractionManagementById(id);
    }
}
